<!DOCTYPE html><html><head><title>详细解读GIT的安装流程</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'><style>
.note-content  {font-family: 'Helvetica Neue', Arial, 'Hiragino Sans GB', STHeiti, 'Microsoft YaHei', 'WenQuanYi Micro Hei', SimSun, Song, sans-serif;}

</style></head><body><div id='preview-contents' class='note-content'>
                        
                    

<h3 id="详细解读git的安装流程">详细解读GIT的安装流程</h3>

<p><strong><code>windows系统</code></strong></p>

<blockquote>
  <p>windows下要使用很多Linux/Unix的工具时，需要cygwin 这样的模拟环境，git也一样，cygwin的安装和配置都比较复杂，就不建议你折腾了。不过有高人已经把模拟环境和git都打包好了，名叫msysgit ，只需要下载一个单独的exe安装程序，其他什么也不用装，绝对好用。</p>
  
  <p>msysgit 是windows版的Git，从<a href="http://git-scm.com/" target="_blank">http://git-scm.com/</a>下载，然后按默认选项安装即可。</p>
</blockquote>

<p><img longdesc="./1508771021661.png" alt="Alt text" title="" type="image/png" src="" class=""></p>

<p>详细安装步骤:</p>



<p><img longdesc="./1508771142744.png" alt="Alt text" title="" type="image/png" src="" class=""></p>



<p><img longdesc="./1508771152881.png" alt="Alt text" title="" type="image/png" src="" class=""></p>



<p><img longdesc="./1508771347138.png" alt="Alt text" title="" type="image/png" src="" class=""></p>



<p><img longdesc="./1508771370930.png" alt="Alt text" title="" type="image/png" src="" class=""></p>



<p><img longdesc="./1508771479871.png" alt="Alt text" title="" type="image/png" src="" class=""></p>



<p><img longdesc="./1508771673547.png" alt="Alt text" title="" type="image/png" src="" class=""></p>



<p><img longdesc="./1508771792988.png" alt="Alt text" title="" type="image/png" src="" class=""></p>



<p><img longdesc="./1508771888600.png" alt="Alt text" title="" type="image/png" src="" class=""></p>



<p><img longdesc="./1508772014082.png" alt="Alt text" title="" type="image/png" src="" class=""></p>



<p><img longdesc="./1508772027542.png" alt="Alt text" title="" type="image/png" src="" class=""></p>



<p><img longdesc="./1508772106166.png" alt="Alt text" title="" type="image/png" src="" class=""></p>

<p>检查是否安装成功</p>



<p><img longdesc="./1508773343600.png" alt="Alt text" title="" type="image/png" src="" class=""></p>

<p><strong><code>MAC下安装</code></strong></p>

<blockquote>
  <p>两种办法：</p>
  
  <p>1、安装 homebrew ，然后通过homebrew安装Git。先打开网站 <a href="http://brew.sh/" target="_blank">http://brew.sh/</a>。 拷贝对应脚本到终端下安装homebrew，然后在终端执行<code>brew install git</code>的命令。</p>
</blockquote>



<p><img longdesc="./1508773579390.png" alt="Alt text" title="" type="image/png" src="" class=""></p>

<blockquote>
  <p>2、直接从 AppStore 安装Xcode，Xcode集成了Git，不过默认没有安装，你需要运行Xcode，选择菜单“Xcode”-&gt;“Preferences”，在弹出窗口中找到“Downloads”，选择“Command Line Tools”，点“Install”就可以完成安装了。</p>
</blockquote>



<p><img longdesc="./1508773614532.png" alt="Alt text" title="" type="image/png" src="" class=""></p>

<p>更多关于git的知识，请访问：<a href="http://www.zhufengpeixun.cn/docs/html/Git/git%E5%85%A5%E9%97%A8.html" target="_blank">http://www.zhufengpeixun.cn/docs/html/Git/git%E5%85%A5%E9%97%A8.html</a></p></div></body></html>